package com.zfzs.post.modules.flow.repository;

import com.zfzs.post.modules.flow.domain.OtherIncome;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.Date;
import java.util.List;

/**
* @author wq
* @date 2019-10-21
*/
public interface OtherIncomeRepository extends MongoRepository<OtherIncome, String>{

    List<OtherIncome> findByAgentId(Long agentId);


    List<OtherIncome> findByAgentId(Long agentId, Pageable pageable);
}